package create_thread;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/4/25
 * Time:19:58
 * 创建线程方法 2-3 -- 实现Runnable接口
 **/
public class Thread5 {
    public static void main(String[] args) {
        //lambda + 匿名 runnable 实现方式
        Thread thread = new Thread(() -> {
            System.out.println("线程名称" + Thread.currentThread().getName());
        });
        thread.start();
    }

}
